﻿namespace Calculator
{
    public class Statement
    {
        public string Assignment { get; set; }
        public string Result { get; set; }
        public string Equation { get { return this.ToString(); } }

        public override string ToString()
        {
            if (string.IsNullOrEmpty(Assignment))
                return string.Empty;
            else
                return Assignment + "=" + Result;
        }
    }
}